<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MuPDFCore: MuPDFCore.MuPDFMultiThreadedPageRenderer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">MuPDFCore<span id="projectnumber">&#160;1.8.0</span>
   </div>
   <div id="projectbrief">Multiplatform .NET bindings for MuPDF</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">MuPDFCore.MuPDFMultiThreadedPageRenderer Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>A class that holds the necessary resources to render a page of a <a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f.html" title="Contains static methods to perform setup operations.">MuPDF</a> document using multiple threads.   
 <a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for MuPDFCore.MuPDFMultiThreadedPageRenderer:</div>
<div class="dyncontent">
<div class="center"><img src="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer__inherit__graph.png" border="0" usemap="#a_mu_p_d_f_core_8_mu_p_d_f_multi_threaded_page_renderer_inherit__map" alt="Inheritance graph"/></div>
<map name="a_mu_p_d_f_core_8_mu_p_d_f_multi_threaded_page_renderer_inherit__map" id="a_mu_p_d_f_core_8_mu_p_d_f_multi_threaded_page_renderer_inherit__map">
<area shape="rect" title="A class that holds the necessary resources to render a page of a MuPDF document using multiple thread..." alt="" coords="5,79,228,119"/>
<area shape="rect" title=" " alt="" coords="72,5,161,31"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afb748f194d7f6983f68c475b53943da5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#afb748f194d7f6983f68c475b53943da5">Render</a> (<a class="el" href="struct_mu_p_d_f_core_1_1_rounded_size.html">RoundedSize</a> targetSize, <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a> region, IntPtr[] destinations, <a class="el" href="namespace_mu_p_d_f_core.html#ade1eb4d4f9c9c8a66bde9152ea9e41bb">PixelFormats</a> pixelFormat)</td></tr>
<tr class="memdesc:afb748f194d7f6983f68c475b53943da5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the specified region to an image of the specified size, split in a number of tiles equal to the number of threads used by this <a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html" title="A class that holds the necessary resources to render a page of a MuPDF document using multiple thread...">MuPDFMultiThreadedPageRenderer</a>, without marshaling. This method will not return until all the rendering threads have finished.   <a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#afb748f194d7f6983f68c475b53943da5">More...</a><br /></td></tr>
<tr class="separator:afb748f194d7f6983f68c475b53943da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb76562e49532298efc7964aa87283e2"><td class="memItemLeft" align="right" valign="top">delegate Span&lt; byte &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#aeb76562e49532298efc7964aa87283e2">GetSpanItem</a> (int index)</td></tr>
<tr class="memdesc:aeb76562e49532298efc7964aa87283e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets an element from a collection of <a class="el" href="">Span</a>&lt;byte&gt;   <a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#aeb76562e49532298efc7964aa87283e2">More...</a><br /></td></tr>
<tr class="separator:aeb76562e49532298efc7964aa87283e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae618aac7a0b15dd131d4f6637007b4f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#aeb76562e49532298efc7964aa87283e2">GetSpanItem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#ae618aac7a0b15dd131d4f6637007b4f3">Render</a> (<a class="el" href="struct_mu_p_d_f_core_1_1_rounded_size.html">RoundedSize</a> targetSize, <a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a> region, out IDisposable[] disposables, <a class="el" href="namespace_mu_p_d_f_core.html#ade1eb4d4f9c9c8a66bde9152ea9e41bb">PixelFormats</a> pixelFormat)</td></tr>
<tr class="memdesc:ae618aac7a0b15dd131d4f6637007b4f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the specified region to an image of the specified size, split in a number of tiles equal to the number of threads used by this <a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html" title="A class that holds the necessary resources to render a page of a MuPDF document using multiple thread...">MuPDFMultiThreadedPageRenderer</a>, without marshaling. This method will not return until all the rendering threads have finished. Since creating an array of Span&lt;T&gt; is not allowed, this method returns a delegate that accepts an integer parameter (representing the index of the span in the "array") and returns the Span&lt;T&gt; corresponding to that index.   <a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#ae618aac7a0b15dd131d4f6637007b4f3">More...</a><br /></td></tr>
<tr class="separator:ae618aac7a0b15dd131d4f6637007b4f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05eca723202ae5ca1b535b8fe32ef405"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#a05eca723202ae5ca1b535b8fe32ef405">Abort</a> ()</td></tr>
<tr class="memdesc:a05eca723202ae5ca1b535b8fe32ef405"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal to the rendering threads that they should abort rendering as soon as possible.   <a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#a05eca723202ae5ca1b535b8fe32ef405">More...</a><br /></td></tr>
<tr class="separator:a05eca723202ae5ca1b535b8fe32ef405"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3967195e249f10b89eadaeed551a409"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_mu_p_d_f_core_1_1_render_progress.html">RenderProgress</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#ab3967195e249f10b89eadaeed551a409">GetProgress</a> ()</td></tr>
<tr class="memdesc:ab3967195e249f10b89eadaeed551a409"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current rendering progress of all the threads.   <a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#ab3967195e249f10b89eadaeed551a409">More...</a><br /></td></tr>
<tr class="separator:ab3967195e249f10b89eadaeed551a409"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbd67acd59a147ea3818c7c2317844e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#abbd67acd59a147ea3818c7c2317844e4">Dispose</a> ()</td></tr>
<tr class="separator:abbd67acd59a147ea3818c7c2317844e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a9f2e30c872e3b409af2333aede3503f7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#a9f2e30c872e3b409af2333aede3503f7">ThreadCount</a><code> [get]</code></td></tr>
<tr class="memdesc:a9f2e30c872e3b409af2333aede3503f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of threads that are used to render the image.   <a href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#a9f2e30c872e3b409af2333aede3503f7">More...</a><br /></td></tr>
<tr class="separator:a9f2e30c872e3b409af2333aede3503f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >A class that holds the necessary resources to render a page of a <a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f.html" title="Contains static methods to perform setup operations.">MuPDF</a> document using multiple threads.  </p>

<p class="definition">Definition at line <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html#l00276">276</a> of file <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a05eca723202ae5ca1b535b8fe32ef405" name="a05eca723202ae5ca1b535b8fe32ef405"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05eca723202ae5ca1b535b8fe32ef405">&#9670;&#160;</a></span>Abort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MuPDFCore.MuPDFMultiThreadedPageRenderer.Abort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Signal to the rendering threads that they should abort rendering as soon as possible.  </p>

<p class="definition">Definition at line <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html#l00543">543</a> of file <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a>.</p>

</div>
</div>
<a id="abbd67acd59a147ea3818c7c2317844e4" name="abbd67acd59a147ea3818c7c2317844e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbd67acd59a147ea3818c7c2317844e4">&#9670;&#160;</a></span>Dispose()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MuPDFCore.MuPDFMultiThreadedPageRenderer.Dispose </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html#l00592">592</a> of file <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a>.</p>

</div>
</div>
<a id="ab3967195e249f10b89eadaeed551a409" name="ab3967195e249f10b89eadaeed551a409"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3967195e249f10b89eadaeed551a409">&#9670;&#160;</a></span>GetProgress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_mu_p_d_f_core_1_1_render_progress.html">RenderProgress</a> MuPDFCore.MuPDFMultiThreadedPageRenderer.GetProgress </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current rendering progress of all the threads.  </p>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_mu_p_d_f_core_1_1_render_progress.html" title="Holds a summary of the progress of the current rendering operation.">RenderProgress</a> object containing the rendering progress of all the threads.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html#l00555">555</a> of file <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a>.</p>

</div>
</div>
<a id="aeb76562e49532298efc7964aa87283e2" name="aeb76562e49532298efc7964aa87283e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb76562e49532298efc7964aa87283e2">&#9670;&#160;</a></span>GetSpanItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">delegate Span&lt; byte &gt; MuPDFCore.MuPDFMultiThreadedPageRenderer.GetSpanItem </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets an element from a collection of <a class="el" href="">Span</a>&lt;byte&gt;  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index of the element to get.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An element from a collection of <a class="el" href="">Span</a>&lt;byte&gt;</dd></dl>

</div>
</div>
<a id="afb748f194d7f6983f68c475b53943da5" name="afb748f194d7f6983f68c475b53943da5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb748f194d7f6983f68c475b53943da5">&#9670;&#160;</a></span>Render() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MuPDFCore.MuPDFMultiThreadedPageRenderer.Render </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_size.html">RoundedSize</a>&#160;</td>
          <td class="paramname"><em>targetSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>region</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IntPtr[]&#160;</td>
          <td class="paramname"><em>destinations</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_mu_p_d_f_core.html#ade1eb4d4f9c9c8a66bde9152ea9e41bb">PixelFormats</a>&#160;</td>
          <td class="paramname"><em>pixelFormat</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the specified region to an image of the specified size, split in a number of tiles equal to the number of threads used by this <a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html" title="A class that holds the necessary resources to render a page of a MuPDF document using multiple thread...">MuPDFMultiThreadedPageRenderer</a>, without marshaling. This method will not return until all the rendering threads have finished.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">targetSize</td><td>The total size of the image that should be rendered.</td></tr>
    <tr><td class="paramname">region</td><td>The region in page units that should be rendered.</td></tr>
    <tr><td class="paramname">destinations</td><td>An array containing the addresses of the buffers where the rendered tiles will be written. There must be enough space available in each buffer to write the values for all the pixels of the tile, otherwise this will fail catastrophically! As long as the <em>targetSize</em>  is the same, the size in pixel of the tiles is guaranteed to also be the same.</td></tr>
    <tr><td class="paramname">pixelFormat</td><td>The format of the pixel data.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html#l00383">383</a> of file <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a>.</p>

</div>
</div>
<a id="ae618aac7a0b15dd131d4f6637007b4f3" name="ae618aac7a0b15dd131d4f6637007b4f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae618aac7a0b15dd131d4f6637007b4f3">&#9670;&#160;</a></span>Render() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html#aeb76562e49532298efc7964aa87283e2">GetSpanItem</a> MuPDFCore.MuPDFMultiThreadedPageRenderer.Render </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_size.html">RoundedSize</a>&#160;</td>
          <td class="paramname"><em>targetSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_mu_p_d_f_core_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>region</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out IDisposable[]&#160;</td>
          <td class="paramname"><em>disposables</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_mu_p_d_f_core.html#ade1eb4d4f9c9c8a66bde9152ea9e41bb">PixelFormats</a>&#160;</td>
          <td class="paramname"><em>pixelFormat</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the specified region to an image of the specified size, split in a number of tiles equal to the number of threads used by this <a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html" title="A class that holds the necessary resources to render a page of a MuPDF document using multiple thread...">MuPDFMultiThreadedPageRenderer</a>, without marshaling. This method will not return until all the rendering threads have finished. Since creating an array of Span&lt;T&gt; is not allowed, this method returns a delegate that accepts an integer parameter (representing the index of the span in the "array") and returns the Span&lt;T&gt; corresponding to that index.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">targetSize</td><td>The total size of the image that should be rendered.</td></tr>
    <tr><td class="paramname">region</td><td>The region in page units that should be rendered.</td></tr>
    <tr><td class="paramname">disposables</td><td>A collection of IDisposables that can be used to free the memory where the rendered tiles are stored. You should keep track of these and dispose them when you have finished working with the images.</td></tr>
    <tr><td class="paramname">pixelFormat</td><td>The format of the pixel data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A delegate that accepts an integer parameter (representing the index of the span in the "array") and returns the Span&lt;T&gt; corresponding to that index.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html#l00509">509</a> of file <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a9f2e30c872e3b409af2333aede3503f7" name="a9f2e30c872e3b409af2333aede3503f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f2e30c872e3b409af2333aede3503f7">&#9670;&#160;</a></span>ThreadCount</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int MuPDFCore.MuPDFMultiThreadedPageRenderer.ThreadCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The number of threads that are used to render the image.  </p>

<p class="definition">Definition at line <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html#l00306">306</a> of file <a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>MuPDFCore/<a class="el" href="_mu_p_d_f_multi_threaded_page_renderer_8cs_source.html">MuPDFMultiThreadedPageRenderer.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_mu_p_d_f_core.html">MuPDFCore</a></li><li class="navelem"><a class="el" href="class_mu_p_d_f_core_1_1_mu_p_d_f_multi_threaded_page_renderer.html">MuPDFMultiThreadedPageRenderer</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
